//
//  EditController.m
//  掌上海印
//
//  Created by 陈德锋 on 16/4/18.
//  Copyright © 2016年 handsome. All rights reserved.
//

#import "EditController.h"
#import "UserSetting.h"

@interface EditController ()

@end

@implementation EditController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithRed:246.0/255.0 green:246.0/255.0 blue:246.0/255.0 alpha:1.0];
    self.title = @"我的职位";
    UIBarButtonItem *completeBtn=[[UIBarButtonItem alloc] initWithTitle:@"保存" style:UIBarButtonItemStylePlain target:self action:@selector(CompleteClick)];
    self.navigationItem.rightBarButtonItem = completeBtn;

    // Do any additional setup after loading the view.
}

-(void) loadView{
    [super loadView];
    _field = [[UITextField alloc] init];
    _field.frame = CGRectMake(15, 80, [[UIScreen mainScreen] bounds].size.width - 30, 50);
    _field.backgroundColor = [UIColor colorWithRed:246.0/255.0 green:246.0/255.0 blue:246.0/255.0 alpha:1.0];
    [_field setBorderStyle:UITextBorderStyleNone];
    [self.view addSubview:_field];
    UIView *line = [[UIView alloc] init];
    line.frame = CGRectMake(15, 130, [[UIScreen mainScreen] bounds].size.width - 30, 1.2);
    line.backgroundColor = [UIColor colorWithRed:70.0/255.0 green:130.0/255.0 blue:180.0/255.0 alpha:1.0];
    [self.view addSubview: line];
}

-(void) CompleteClick{

    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
